﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000B95 RID: 2965
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MonopolyGameRaiseRatioScRsp : IMessage<MonopolyGameRaiseRatioScRsp>, IMessage, IEquatable<MonopolyGameRaiseRatioScRsp>, IDeepCloneable<MonopolyGameRaiseRatioScRsp>, IBufferMessage
	{
		// Token: 0x17002567 RID: 9575
		// (get) Token: 0x060084A1 RID: 33953 RVA: 0x0016149D File Offset: 0x0015F69D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MonopolyGameRaiseRatioScRsp> Parser
		{
			get
			{
				return MonopolyGameRaiseRatioScRsp._parser;
			}
		}

		// Token: 0x17002568 RID: 9576
		// (get) Token: 0x060084A2 RID: 33954 RVA: 0x001614A4 File Offset: 0x0015F6A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MonopolyGameRaiseRatioScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002569 RID: 9577
		// (get) Token: 0x060084A3 RID: 33955 RVA: 0x001614B6 File Offset: 0x0015F6B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MonopolyGameRaiseRatioScRsp.Descriptor;
			}
		}

		// Token: 0x060084A4 RID: 33956 RVA: 0x001614BD File Offset: 0x0015F6BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolyGameRaiseRatioScRsp()
		{
		}

		// Token: 0x060084A5 RID: 33957 RVA: 0x001614C5 File Offset: 0x0015F6C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolyGameRaiseRatioScRsp(MonopolyGameRaiseRatioScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.ratio_ = other.ratio_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060084A6 RID: 33958 RVA: 0x001614F6 File Offset: 0x0015F6F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolyGameRaiseRatioScRsp Clone()
		{
			return new MonopolyGameRaiseRatioScRsp(this);
		}

		// Token: 0x1700256A RID: 9578
		// (get) Token: 0x060084A7 RID: 33959 RVA: 0x001614FE File Offset: 0x0015F6FE
		// (set) Token: 0x060084A8 RID: 33960 RVA: 0x00161506 File Offset: 0x0015F706
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700256B RID: 9579
		// (get) Token: 0x060084A9 RID: 33961 RVA: 0x0016150F File Offset: 0x0015F70F
		// (set) Token: 0x060084AA RID: 33962 RVA: 0x00161517 File Offset: 0x0015F717
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Ratio
		{
			get
			{
				return this.ratio_;
			}
			set
			{
				this.ratio_ = value;
			}
		}

		// Token: 0x060084AB RID: 33963 RVA: 0x00161520 File Offset: 0x0015F720
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MonopolyGameRaiseRatioScRsp);
		}

		// Token: 0x060084AC RID: 33964 RVA: 0x0016152E File Offset: 0x0015F72E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MonopolyGameRaiseRatioScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.Ratio == other.Ratio && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060084AD RID: 33965 RVA: 0x0016156C File Offset: 0x0015F76C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.Ratio != 0U)
			{
				num ^= this.Ratio.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060084AE RID: 33966 RVA: 0x001615C4 File Offset: 0x0015F7C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060084AF RID: 33967 RVA: 0x001615CC File Offset: 0x0015F7CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060084B0 RID: 33968 RVA: 0x001615D8 File Offset: 0x0015F7D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this.Ratio != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Ratio);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060084B1 RID: 33969 RVA: 0x00161634 File Offset: 0x0015F834
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.Ratio != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Ratio);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060084B2 RID: 33970 RVA: 0x0016168C File Offset: 0x0015F88C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MonopolyGameRaiseRatioScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.Ratio != 0U)
			{
				this.Ratio = other.Ratio;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060084B3 RID: 33971 RVA: 0x001616DC File Offset: 0x0015F8DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060084B4 RID: 33972 RVA: 0x001616E8 File Offset: 0x0015F8E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 80U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Ratio = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040032AE RID: 12974
		private static readonly MessageParser<MonopolyGameRaiseRatioScRsp> _parser = new MessageParser<MonopolyGameRaiseRatioScRsp>(() => new MonopolyGameRaiseRatioScRsp());

		// Token: 0x040032AF RID: 12975
		private UnknownFieldSet _unknownFields;

		// Token: 0x040032B0 RID: 12976
		public const int RetcodeFieldNumber = 5;

		// Token: 0x040032B1 RID: 12977
		private uint retcode_;

		// Token: 0x040032B2 RID: 12978
		public const int RatioFieldNumber = 10;

		// Token: 0x040032B3 RID: 12979
		private uint ratio_;
	}
}
